# Copyright 2024 The IREE Authors
#
# Licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# Tests for common transforms.

load("//build_tools/bazel:enforce_glob.bzl", "enforce_glob")
load("//build_tools/bazel:iree_lit_test.bzl", "iree_lit_test_suite")

package(
    features = ["layering_check"],
    licenses = ["notice"],  # Apache 2.0
)

iree_lit_test_suite(
    name = "lit",
    srcs = enforce_glob(
        [
            "convert_to_multi_mma.mlir",
            "distribute_inner_tiled.mlir",
            "distribute_lane_forall.mlir",
            "drop_inner_tiled_unit_dims.mlir",
            "lower_inner_tiled.mlir",
            "lower_vector_barrier.mlir",
            "transform_fuse_collapse_shape_with_forall.mlir",
            "transform_fuse_extract_slice_with_forall.mlir",
            "transform_fuse_forall.mlir",
            "transform_lower_barrier_region.mlir",
            "vectorize_iree_gpu_ops.mlir",
            "unroll_multi_mma.mlir",
        ],
        include = ["*.mlir"],
    ),
    cfg = "//compiler:lit.cfg.py",
    tools = [
        "//tools:iree-opt",
        "@llvm-project//llvm:FileCheck",
    ],
)
